#ifndef GAME_BUILDING_H_
#define GAME_BUILDING_H_
#include "game_part.h"
class Game_Building : public Game_Part{
private:
	unsigned int timer_tick;
	double left_dx,left_dy;
	double right_dx,right_dy;
	double left_dw,right_dw;
	Sence_Config* p_config;
	vector<SDL_Surface*> left_pictures;
	vector<SDL_Surface*> right_pictures;
	list<Pic*> buildings;
public:
	Game_Building(Sence_Config* config);
	virtual ~Game_Building();
	virtual bool TimerTick();
	virtual void UpdateToScreen();
private:
	void initialBuilding();
	void computeDxDyDw();
	void moveNext();
	void addLeftBuilding();
	void addRightBuilding();
};
#endif
